package com.jie.model.dto.user;

import com.jie.component.validation.annotion.NotEmpty;
import com.jie.component.validation.annotion.Phone;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * @author jie
 * @version 1.0 2025-02-14
 */
@Data
public class UserLoginWithPhoneDTO implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    @Phone(message = "手机号格式错误")
    private String phone;

    @NotEmpty(message = "密码不能为空")
    private String password;
}
